package com.hotel.reservation.dao;


import com.hotel.reservation.po.Message;
import com.hotel.reservation.po.Reserve;
import com.hotel.reservation.po.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserDao {
    List<User> findAllUser();

    List<User> findOneUserByTel(String user_tel);

    List<User> findOneUserById(int id);

    List<User> login(User user);

    List<User> selectAllUserByPage(Map<String, Object> map);

    List<Reserve> selectUserReserve(int userId);

    List<Message> selectUserMessage(int userId);

    int addUser(User user);

    int deleteUser(String user_tel);

    int updateUserByTel(User user);

}
